<div class="titlewords" >最近来访</div>
<% if @visitors -%>
<div class="photo_box">
	<ul>
		<% @visitors.each do |visitor| -%>
		<%user = User.find(visitor.visitor_id) %>
		<li>
			<%= link_to image_tag(user.avatar.url, :class => "headphoto"), profile_for(user)%>
			<%= user.username%>
		</li>
		<% end -%>
    </ul>
</div>
<% else %>
<div>还没有访问者</div>
<% end %>